#include <iostream>
#include <vector>
using namespace std;

int main(int argc, char const *argv[]) {
  /* code */
  vector<int> My_vector;
  int a[10];
  for (int i = 0; i < 10; i++) {
    cin >> a[i];
  }
  for (int j = 0; j < 10; j++) {
    My_vector.push_back(a[j]);
  }
  int sum[10];
  for (int k = 0; k < 10; k++) {
    sum[k] = My_vector[k] + My_vector[k + 1];
    cout << sum[k] << endl;
    k++;
  }
  for (int k = 0; k < 5; k++) {
    sum[k] = My_vector[k] + My_vector[9 - k];
    cout << sum[k] << endl;
  }

  return 0;
}
